package com.example.task.work;

import com.example.task.enums.TaskStatus;
import com.example.task.enums.TaskType;
import com.example.task.model.AskForLeave;
import com.example.task.model.EventEntity;
import com.example.task.model.TaskEntity;
import com.example.task.model.vo.EventVo;

import java.util.List;

/**
 * @author 陈建峰
 * @date 2022/10/31 14:57
 * @Description 请假流程
 */
public class AskForLeaveWorker {

    /**
     * 添加一条请假流程
     *
     * @param eventVo
     * @return
     */
    public Boolean insertTask(AskForLeave askForLeave, List<TaskEntity> taskEntityList) {
        //添加整个请假流程的主要内容
        askForLeave.setType(TaskType.ASK_FOR_LEAVE.getType());


        return false;
    }

}
/*


{
"bodeName":"xx请假",
"bode":"生病请假需要3时间",
"type":"1",
"people":"admin",
"taskList":[
    {
    name:"审批人1进行审批"
    people:"chen"
    sort:1
    },
    {
    name:"审批人2进行审批"
    people:"xiaochen"
    sort:2
    }
]
}







 */